/**
 * 角色表
 */
 module.exports = function (sequelize, DataTypes,Model) {
    class RoleModel extends Model {
    }
    RoleModel.init({
        id: {
            type: DataTypes.INTEGER,
            primaryKey: true,
            autoIncrement: true,
            comment:"主键"
        },
        role_name: {
            type: DataTypes.STRING,
            allowNull: true,
            comment: "角色名",
        },
        description: {
            type: DataTypes.STRING,
            allowNull: true,
            comment: "角色描述",
        }
    }, {
        sequelize,
        modelName:"role"
    })
    return RoleModel
}